package com.learning.spring.aop.advice.after;

import com.learning.spring.aop.advice.monitor.AopMonitor;
import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * ClassName: AopAfterAdvice
 * Description: 后置 Advice
 * Date: 2019/4/21 15:40 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class AopAfterAdvice implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        // 后置横切业务
        AopMonitor.end();
    }
}